//
//  MDOSLBSLocationManager.h
//  MDOSLBS
//
//  Created by KaiChe on 2020/10/30.
//

#import <Foundation/Foundation.h>
#import <MDOSLBS/MDOSLBSLocationResponse.h>
#import <MDOSLBS/MDOSLBSLocationRequest.h>

NS_ASSUME_NONNULL_BEGIN

@interface MDOSLBSLocationManager : NSObject


/// 定位，获取经纬度信息。
/// @param requestBlock 定制MDOSLBSLocationRequest对象，设置参数的block，参数通过设置的property来完成
/// @param finishedLocatingBlock 获取经纬度信息 结果回调block；

/* 例子
*  [MDOSLBSLocationManager locationWithRequestBlock:^(MDOSLBSLocationRequest *request) {
*
*                request.cacheTimeInterval = APCoreLocationCacheAvaliableDefault;
*            } onFinishedLocating:^(BOOL success, CLLocation *location, NSError *error) {
*
*            }];
*/

+ (void)locationWithRequestBlock:(void(^)(MDOSLBSLocationRequest *request))requestBlock
           finishedLocatingBlock:(void(^)(MDOSLBSLocationResponse *locationResp))finishedLocatingBlock;


/// 定位和逆地理。
/// @param requestBlock 同上
/// @param finishedLocatingBlock 同上
/// @param finishedReversingGeocodeBlock 结束逆地理处理结果回调
+ (void)locationWithRequestBlock:(void(^)(MDOSLBSLocationRequest *request))requestBlock
           finishedLocatingBlock:(void(^)(MDOSLBSLocationResponse *locationResp))finishedLocatingBlock
   finishedReversingGeocodeBlock:(void(^ _Nullable)(MDOSLBSLocationWithReversingGeocodeResponse *locationWithReversingGeocodeResp))finishedReversingGeocodeBlock;


@end

NS_ASSUME_NONNULL_END
